let img = document.querySelector(".content>.function>img")
let imgn = 0
// img.src = "../images/banner2.png"
const imgs = ["banner主图.png", "banner1.png", "banner2.png", "banner3.png"]
setInterval(function () {
  if (imgn === 4) {
    console.log("if中赋值");
    imgn = 0
    img.src = `../images/${imgs[imgn]}`


  }
  else {
    console.log("else中赋值");
    img.src = `../images/${imgs[imgn]}`
    imgn++

  }
}, 1000)